define("a/tpl/sponsor_tpl.html.js",[],function(){ return'\n
\n
\n

广告,也可以是生活的一部分

\n
\n
\n <# if(!!has_banner){ #> \n
\n \n <# }else{ #> \n
\n\n <# } #>\n \n
\n
\n \n <# if(!!has_desc){ #>\n
\n

<#=title#>

\n
提供的广告 \n
\n
\n <# } #>\n
\n \n
\n
\n
'; });define("a/tpl/new_cpc_tpl.html.js",[],function(){ return'\n\n
\n \n \n
\n <# if(isVideo){ #> \n
\n
\n
\n \n <# }else{ #> \n
\n <# } #>\n \n
\n
\n <# if(avatar){ #>\n \n \n <# } #>\n \n
\n \n <# if(!!title){ #>\n

<#=title#>

\n <# if(!!price){ #> \n

¥<#=price#>

\n <# } #>\n\n \n \n \n \n <# if(pos_type === 0 && parseInt(crt_size) === 708){ #>\n

\n \n \n

\n <# } #>\n <# } #>\n <# if(!(tag_pos == \'left\' || tag_pos == \'right\') && superscript){ #>\n \n \n
广告
style="display:none"<#}#>>\n \n
\n
\n <# } #>\n
\n
\n\n \n <# if(isDownload) {#>\n \n \n
<#=btn_text#>
\n
\n
<#=btn_text#>
\n
\n
\n \n \n \n \n \n \n\n <# }else{ #>\n \n \n \n <# if(!!is_wx_app){ #>\n <# if(pos_type === 0 && parseInt(crt_size) === 708){ #>\n <# } else { #><# } #>\n \n <# } #>\n <#=btn_text#>\n \n <# } #>\n
\n
\n
\n'; });define("appmsg/emotion/caret.js",[],function(e,t){ "use strict"; var t={}; return t.get=function(e){ var t=0; if(document.selection){ e.focus(); var a=document.selection.createRange(); a.moveStart("character",-e.value.length),t=Sel.text.length; }else(e.selectionStart||"0"==e.selectionStart)&&(t=e.selectionStart); return t; },t.set=function(e,t){ if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){ var a=e.createTextRange(); a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(); } },t; });define("pages/audition_tpl.html.js",[],function(){ return'
\n
\n
\n
<#=msg#>
\n \n
\n
'; });define("biz_wap/utils/localstorage.js",[],function(){ "use strict"; var t={}; return t=window.localStorage?{ set:function(t,e){ null!==this.get(t)&&this.remove(t),localStorage.setItem(t,e); }, get:function(t){ var e=localStorage.getItem(t); return void 0===e?null:e; }, remove:function(t){ localStorage.removeItem(t); }, clear:function(){ localStorage.clear(); }, each:function(t){ for(var e,o=localStorage.length,n=0,t=t||function(){};o>n&&(e=localStorage.key(n), t.call(this,e,this.get(e))!==!1);n++)localStorage.length\n
\n
\n
是否立即下载该应用
\n
\n
\n
\n \n \n \n
\n
\n <#=app_name#>\n
\n
\n
\n
\n 取消\n 下载\n
\n
\n\n'; });;define('widget/wx_profile_dialog_primary.css', [], function(require, exports, module) { return ".radius_avatar{display:inline-block;background-color:#fff;padding:3px;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;overflow:hidden;vertical-align:middle}.radius_avatar img{display:block;width:100%;height:100%;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;background-color:#eee}.wx_profile_dialog_primary .weui-mask{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,0.6)}.wx_profile_dialog_primary .weui-dialog{position:fixed;z-index:5000;width:80%;max-width:300px;top:50%;left:50%;-webkit-transform:translate(-50%,-65%);transform:translate(-50%,-65%);background-color:#fff;text-align:center;border-radius:3px;overflow:hidden}.wx_profile_dialog_primary .weui-dialog__hd{position:relative;padding:20px 20px 10px;text-align:left}.wx_profile_dialog_primary .weui-dialog__hd:after{content:\" \";position:absolute;left:20px;right:20px;bottom:0;height:1px;border-bottom:1px solid #d5d5d6;color:#d5d5d6;-webkit-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:scaleY(0.5);transform:scaleY(0.5)}.wx_profile_dialog_primary .weui-dialog__title{font-weight:400;font-size:17px}.wx_profile_dialog_primary .weui-dialog__bd{padding:16px 20px;min-height:40px;font-size:15px;line-height:1.3;word-wrap:break-word;word-break:break-all;color:#999}.wx_profile_dialog_primary .weui-dialog__bd:first-child{padding:2.7em 20px 1.7em;color:#353535}.wx_profile_dialog_primary .weui-dialog__ft{position:relative;line-height:44px;font-size:17px;display:-webkit-box;display:-webkit-flex;display:flex}.wx_profile_dialog_primary .weui-dialog__ft:after{content:\" \";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #d5d5d6;color:#d5d5d6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(0.5);transform:scaleY(0.5)}.wx_profile_dialog_primary .weui-dialog__btn{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3cc51f;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.wx_profile_dialog_primary .weui-dialog__btn:active{background-color:#eee}.wx_profile_dialog_primary .weui-dialog__btn:after{content:\" \";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #d5d5d6;color:#d5d5d6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(0.5);transform:scaleX(0.5)}.wx_profile_dialog_primary .weui-dialog__btn:first-child:after{display:none}.wx_profile_dialog_primary .weui-dialog__btn_default{color:#353535}.wx_profile_dialog_primary .weui-dialog__btn_primary{color:#1aad19}.wx_profile_dialog_primary .weui-skin_android .weui-dialog{text-align:left;box-shadow:0 6px 30px 0 rgba(0,0,0,0.1)}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__title{font-size:21px}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__hd{text-align:left;padding:1.3em 1.6em 1.2em}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__hd:after{display:none}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__bd{color:#999;padding:0 1.6em 1.4em;font-size:17px;text-align:left}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__bd:first-child{padding:1.6em 1.6em 2em;color:#353535}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__ft{display:block;text-align:right;line-height:42px;font-size:16px;padding:0 1.6em .7em}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__ft:after{display:none}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__btn{display:inline-block;vertical-align:top;padding:0 .8em}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__btn:after{display:none}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__btn:active{background-color:rgba(0,0,0,0.06)}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__btn:visited{background-color:rgba(0,0,0,0.06)}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__btn:last-child{margin-right:-0.8em}.wx_profile_dialog_primary .weui-skin_android .weui-dialog__btn_default{color:#808080}@media screen and (min-width:1024px){.wx_profile_dialog_primary .weui-dialog{width:35%}}.wx_profile_dialog_primary .weui-flex{display:-webkit-box;display:-webkit-flex;display:flex}.wx_profile_dialog_primary .weui-flex__item{-webkit-box-flex:1;-webkit-flex:1;flex:1}.wx_profile_dialog_primary .weui-flex{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.wx_profile_dialog_primary .weui-flex__item{word-wrap:break-word;word-break:break-all}.wx_profile_info_avatar_wrp{padding-right:10px}.wx_profile_info_avatar{width:50px;height:50px;padding:0;display:inline-block;background-color:#fff;vertical-align:middle}.wx_profile_info_avatar img{display:block;width:100%;-webkit-border-radius:10px;border-radius:10px}.wx_profile_info_title{display:block;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:16px;font-weight:400;text-align:left}"; });define("new_video/player.js",["page/pages/video.css","biz_wap/zepto/zepto.js","biz_wap/zepto/event.js","biz_wap/zepto/touch.js","biz_wap/jsapi/log.js","biz_common/dom/event.js","new_video/player.html.js","biz_wap/utils/device.js","new_video/ctl.js","biz_common/tmpl.js","pages/iframe_communicate.js","a/a_utils.js","biz_common/utils/url/parse.js","pages/version4video.js","biz_wap/utils/wapsdk.js","biz_common/base64.js","biz_wap/jsapi/core.js","new_video/plugin/util.js"],function(e){ "use strict"; function t(){ o(),i(); } function i(){ T.on("onNetWorkChange",function(e){ if(console.log("networkchanged",e),e.networkType||(e.networkType=e.netType),e.networkType&&e.simType)try{ if(!parent.window.lastNetworkType&&window.networkType&&window.simType)parent.window.lastNetworkType={ networkType:window.networkType, simType:window.simType };else if(b.isObjectValueEqual(parent.window.lastNetworkType,e))return; if(window.simType=e.simType,window.networkType=e.networkType,b.isMobileNetwork(e.networkType)&&1!==e.simType&&parent.window.lastNetworkType&&("wifi"===parent.window.lastNetworkType.networkType||b.isNoneNetwork(parent.window.lastNetworkType.networkType)))for(var t in parent.window.__MpPlayers){ var i=parent.window.__MpPlayers[t]; i._g.isUserPause=!1,i._g.pauseNetType=null,!i.isPlay()&&!i.isEnd()&&i.isPause()&&i.hasBeginPlay()?(i._g.isUserPause=!0, i._g.pauseNetType=parent.window.lastNetworkType.networkType):i.isPlay()&&("wifi"===parent.window.lastNetworkType.networkType&&b.isVideoNeedFlowNotice(i.opt.flow,2)||b.isNoneNetwork(parent.window.lastNetworkType.networkType)&&b.isVideoNeedFlowNotice(i.opt.flow,4))&&i.__showFlowNotice_1(); } parent.window.lastNetworkType=e; }catch(o){} }); } function o(){ document.webkitVisibilityState?document.addEventListener("webkitvisibilitychange",r,!1):document.msVisibilityState?document.addEventListener("msvisibilitychange",r,!1):document.visibilityState&&document.addEventListener("visibilitychange",r,!1); } function n(){ if("hidden"in document)return"hidden"; for(var e=["webkit","moz","ms","o"],t=0;t0?!0:!1; }catch(j){ S._debug=!1; } var C=3e3; t(); var B=function(e){ S._debug&&console.log(e); },k=navigator.userAgent,F=function(){ return!0; }(),M=-1!==k.indexOf("Safari")&&-1!==k.indexOf("Version")&&-1==k.indexOf("Android"),x=function(){ return!!h.browser.M1; }(),D=function(e,t){ var i=document.createElement("div"); return e in i.style?(i.style[e]=t,i.style[e]===t):!1; },N=function(e){ var t=0,i=0,o=0; .5>e&&(e=0),e=Math.ceil(e); var t=Math.floor(e/3600),i=Math.floor((e-3600*t)/60),o=e-3600*t-60*i; return 0!=t?(10>t&&(t="0"+t),t+=":"):t="",10>i&&(i="0"+i),10>o&&(o="0"+o),t+i+":"+o; },H=!h.canSupportVideo,L=function(e){ var t=$(e.container); "undefined"==typeof e.videoReportType&&(e.videoReportType=-1),e.width=e.width||300, e.height=e.height||300,e.videoWidth=e.videoWidth||0,e.videoHeight=e.videoHeight||0, e.duration=e.duration||0,e.videoFit=!1,e.isVideoSharePage=e.isVideoSharePage||!1; var i={ needToFit:!1, supportObjectFit:!1, os:h.os }; if(e.width&&e.height&&e.videoWidth&&e.videoHeight){ var o=Math.abs(e.width/e.height-e.videoWidth/e.videoHeight); .1>=o&&(i.needToFit=!0,D("objectFit","fill")&&(i.supportObjectFit=!0,e.videoFit=!0)); } e.ratio=e.ratio||e.width/e.height,e.autoplay=!!e.autoplay||!1,e.flow=e.flow&&parseFloat(e.flow)||0, this.opt=e,this.id=e.id=+new Date+"_"+Math.floor(Math.random()*Math.floor(+new Date)), this.__iosPreloadPause=!1,this.__iosPreloadPlayFlag=!1,this.__iosIsRealPreload=!1, this.__forcePause=!1,this.__hasFuncControllBar=!0,this.__dragTimes=[],this.__play_total_time=0, this.__last_playtime=0,this.__always_hide_loading=e.always_hide_loading||!1,this.__last_loadingtime=0, this.__loadingCountFlag=null,this.__userplaytime=!1,this._playingBufferingStartTime=null, this._g={ timeupdateCacheCount:5, serialTimeupdateCache:[], resetShowingLoadingTimeoutId:null, showingLoadingTimeoutId:null, statusDefine:{ init:1, play:1, pause:1, loading:1, end:1, error:1 }, subStatusDefine:{ init:1, play:1, playing:1, waiting:1, stalled:1, seeking:1, seeked:1, preload:1 }, status:"init", subStatus:"init", triggerTimeupdateLog:!0, isUserPause:!1, pauseNetType:null, hasReportBeginPlay:!1 },e._mustHideFullScreen=x,e.display=e.autoHide?"none":"block",e.ad_muted_btn=e.ad_muted_btn||!1; var n=p.tmpl(u,e); t.append(n); var a=this.container=$("#js_mpvedio_"+this.id); this.$video=a.find("video"); var s=this.video=this.$video[0]; this.__initData(),this.__initVideo(); var r=e.src; if(!r)return this.changeStatus({ status:"error", subStatus:"5" }),void this.__triggerOutside("error",{ errorcode:5 }); if(s.setAttribute("origin_src",r),H)return a.find(".js_btn_play").attr("href",r).show(), this.__loadedHandler(),void this.__bindBtnEvent(); parent.window&&!parent.window.lastNetworkType&&window.networkType&&window.simType&&(parent.window.lastNetworkType={ networkType:window.networkType, simType:window.simType }); var l=e.plugins||[]; this._blockPlugin={}; for(var d=0,_=l.length;_>d;++d){ var c=l[d]; c.setPlayer(this),!!c.init&&c.init(); } this.plugins=l,this._trigger("afterCheckVideoFit",i),this._trigger("loading",e), this._defineEvent(),this.__bindBtnEvent(),this.__bindVideoEvent(),this._addPostmessageListener(); try{ parent.window.__MpPlayers||(parent.window.__MpPlayers={}),parent.window.__MpPlayers[this.id]=this; }catch(g){} }; return $.extend(L.prototype,{ _jsapiLog:function(e){ var t=["vid:","videosrc:"]; this.opt&&this.opt.extinfo&&this.opt.extinfo.vid&&(t[0]+=this.opt.extinfo.vid),this.$video&&this.$video[0]&&this.$video[0].src&&(t[1]+=this.$video[0].src), d.info("videoplayer "+t.join(";")+";"+e); }, __triggerOutside:function(){ var e=this.opt,t=arguments,i=t[0],o=this,n=this.video; if(i){ i=i.substr(0,1).toUpperCase()+i.substr(1); var a=e["on"+i]; "function"==typeof a&&a.apply(this,t),"BeginPlay"!=i||null!=o.__replaySec&&0!=o.__replaySec||!h.os.ios||(n.currentTime=.1); } }, __errorHandler:function(){ this.video.removeAttribute("src"); }, __loadingHandler:function(e){ this.showLoading(),this._trigger("ready",e); }, __readyHandler:function(e){ var t=this.opt.src; v.proxyPreloadExper()&&v.proxyPreloadExper().isUsePreload&&this.setSrc(t),this._trigger("loaded",e); }, __loadedHandler:function(e){ if(e&&e.autoplay&&!M)return this.videoCtlReport({ step:15 }),this._g.hasReportBeginPlay=!0,void this._trigger("readyBeginPlay",e); if(this.opt.isVideoSharePage&&v.device.inWechat)return this.__firstLoadedFlowNoticeJudge(), this.videoCtlReport({ step:15 }),this._g.hasReportBeginPlay=!0,void this._trigger("readyBeginPlay",e); this.hideLoading(),this.container.find(".js_video_play_controll").css({ display:"block" }); var t=this.opt.duration; if(t&&t>0&&this.container.find(".js_video_length").html(N(t)).show(),1==this.__iosPreloadPause){ var i=this; setTimeout(function(){ var e=i.container.find(".js_video_pause_controll"); e.hide(); var t=i.container.find(".js_video_play_controll"); t.show(); }); } }, __readyBeginPlayHandler:function(e){ v.proxyPreloadExper()&&v.proxyPreloadExper().isUsePreload||this.setSrc(this.opt.src), this._trigger("beginPlay",e); }, __beginPlayHandler:function(){ H&&(location.href=this.opt.src); var e=this.container,t=this,i=this.video; t.__firstPlayStart=+new Date,this.__userplaytime=!0,e.find(".js_video_poster").show(), this.showCover(),e.find(".js_video_play_controll").hide(),this.__hasBeginPlay=!0, t.showLoading("firstTime"),t.__firstLoadedFlowNoticeJudge(),setTimeout(function(){ t.__continueSec&&(t.__replaySec=t.__continueSec,t.__continueSec=null),console.log("set continue",t.__replaySec), i.play(); },1); }, __replayHandler:function(){ this.videoCtlReport({ step:9 }); var e=this.video.muted; this.setSrc(this.src,this.video.preload,!0),this.triggerMuted(e),this._afterReplay(); }, __endHandler:function(){ this.container.find(".js_btn_play_aria").data("status","3").removeClass("video_playing"), this.hideControllBar(),this._hidePlayControllBar(); }, __hideControllTimeoutCallback:function(){ return this.__onTouch?void this.__hideControllTimeout():void(this.isPlay()&&this.hideControllBar()); }, __touchVideoHandler:function(){ var e=this,t=this.opt; if(t.blockTouchVideo||this.__onTouch)return!1; if(!e.__canplay||e.isEnd()&&t.hideControllBarAtEnd)return void e.hideControllBar(); var i=e.container.find(".js_controll"); "none"==i.css("display")?e.showControllBar():e.hideControllBar(!0); var o=e.container.find(".js_video_flow"); "none"!==o.css("display")&&e._g.isUserPause===!1&&e.__hideFlowNotice(),e.__hideControllTimeout(); }, __hideControllTimeout:function(){ var e=this; this.__touchVideoTimeoutHandler&&clearTimeout(this.__touchVideoTimeoutHandler),this.__touchVideoTimeoutHandler=setTimeout(function(){ e.__hideControllTimeoutCallback(); },C); }, __initData:function(){ this.log={ hasended:0, lastsec:0, duration:0, video_error:0 },this.__hasBeginPlay=!1,this.__canplay=!1,this._playingBufferingStartTime=null, this.__userplaytime=!1,this.__hasscroll=!1,this.__replaySec=null,this.__playQueue=[]; }, __initVideo:function(){ var e=this.opt,t=this.video; t.addEventListener("contextmenu",function(e){ e.preventDefault(),e.stopPropagation(); },!1),t.hasAttribute("controls")&&t.removeAttribute("controls"),t.setAttribute("webkit-playsinline","isiPhoneShowPlaysinline"), t.setAttribute("playsinline","isiPhoneShowPlaysinline"),e.loop&&t.setAttribute("loop",e.loop), e.muted&&s(t,!0),this.$video.off("loadedmetadata durationchange"),this.__hasVideoDurationchange=!1; }, __getDuration:function(){ var e=this.opt,t=this.video,i=t.duration; return i&&1!=i?i:e.duration; }, __videoDurationchange:function(){ var e=this; if(!e.__hasVideoDurationchange){ var t=this.video,i=this.opt,o=this.container; if(1/0!=t.duration&&t.duration>0&&1!=t.duration)e.duration=t.duration,e.__hasVideoDurationchange=!0;else{ if(!i.duration)return!1; e.duration=i.duration,e.__hasVideoDurationchange=!0; } e.log.duration=e.duration,e.duration=e.duration>>0,o.find(".js_total_time").text(N(e.duration)), this.__hasFuncControllBar&&o.find(".js_progress_bar,.js_total_time").show(); var n=+new Date,a=n-e.log.loadwait_start; e.log.loadwait=a,e._trigger("durationchange",{ loadwait:a }); } }, __startCountTime:function(){ var e=this,t=this.video; t&&null===e.__last_playtime&&(e.__last_playtime=t.currentTime); }, __endCountTime:function(){ var e=this,t=this.video; t&&t.currentTime>e.__last_playtime&&null!==e.__last_playtime&&(e.__play_total_time+=t.currentTime-e.__last_playtime, e.__last_playtime=null); }, __bindVideoEvent:function(){ var e=this.$video,t=this,i=this.container,o=i.find(".js_switch"),n=(i.find(".js_video_pause_controll"), this.video); e.off("timeupdate").on("timeupdate",function(){ if(t.__forcePause===!0)return void B(t.id+":timeupdate __forcePause return"); if(t.__hasBeginPlay&&!t.__canplay)return t.showLoading(),!1; n=t.video,null!=t.__replaySec&&(B(t.id+":timeupdate __replaySec"),n.pause(),n.currentTime=t.__replaySec, t.__last_playtime=t.__replaySec,n.play(),t.__replaySec=null),t.__videoDurationchange(); var e=n.currentTime; if(e>0){ t.__startCountTime(),t._addSerialTimeupdate(),("loading"!==t._g.status||"waiting"!==t._g.subStatus&&"seeking"!==t._g.subStatus)&&t._checkPlayBySerialTimeupdate()&&t.hideLoading(); var i=t.__getDuration(); t.__onTouch||(t.__setControllBar(e/i),t.__setPlayTime(e)),t.hideCover(),t._trigger("timeupdate",{ currentTime:e }),l(t); } }),e.off("canplay").on("canplay",function(){ null!=t.__replaySec&&(n.currentTime=1*(1*t.__replaySec).toFixed(4),t.__last_playtime=t.__replaySec, t.__replaySec=null),t.__canplay=!0,t._trigger("canplay"); }),e.off("ended").on("ended",function(){ B("player inner isend:"+t.isEnd()),t.isEnd()&&(t.changeStatus({ status:"end", subStatus:"" }),t.__endCountTime(),t._trigger("end")); }),e.off("emptied").on("emptied",function(){}),t.waitingHandlerTimer=null; var a=0; e.off("stalled").on("stalled",function(){ if(this.__hasBeginPlay&&!t.waitingHandlerTimer){ t.changeStatus({ status:"loading", subStatus:"stalled" }),t.showLoading(); var e=n.src,i=n.readyState,o=n.error; 0!=i||o&&0!=o.code||(clearTimeout(t.waitingHandlerTimer),t.waitingHandlerTimer=null, t.showLoading(),t.showCover(),n.pause(),n.src=e,n.load(),n.play(),B(t.id+":stalled")); } }),e.on("seeked",function(){ t.__onTouch||(t.changeStatus({ status:"loading", subStatus:"seeked" }),n.play()),B("video seeked event"); }),e.off("seeking").on("seeking",function(){ B("seeking,__hasBeginPlay:"+t.__hasBeginPlay),t.__hasBeginPlay&&(t.changeStatus({ status:"loading", subStatus:"seeking" }),t.showLoading()); }),e.off("waiting").on("waiting",function(){ if(B("waiting,__hasBeginPlay:"+t.__hasBeginPlay),t.__hasBeginPlay){ t.changeStatus({ status:"loading", subStatus:"waiting" }),t.showLoading(),console.log("waiting counting begin"),t.loadingCountFlag||clearTimeout(t.loadingCountFlag), t.__last_loadingtime=n.currentTime,t.loadingCountFlag=setTimeout(function(){ n.currentTime===t.__last_loadingtime&&(t.changeStatus({ status:"error", subStatus:"6" }),t.__triggerOutside("error",{ errorcode:6 })); },P),clearTimeout(t.waitingHandlerTimer),t.waitingHandlerTimer=null; var e=0; try{ for(var i in parent.window.__MpPlayers)if(parent.window.__MpPlayers.hasOwnProperty(i)&&e++, e>1)break; }catch(o){} e>1&&t.__forcePause===!1&&(t.waitingHandlerTimer=setTimeout(function(){ if(t.__forcePause!==!0){ var e=n.error; if(0==n.readyState&&(!e||0==e.code)){ clearTimeout(t.waitingHandlerTimer),t.waitingHandlerTimer=null; var i=n.src; t.showLoading(),t.showCover(),n.pause(),n.src=i,a++,n.load(),n.play(),B(t.id+":waitingHandlerTimer"); } } },1e4)),t._trigger("waiting"); } }),e.off("play playing").on("play playing",function(e){ return t.__forcePause===!0?void B(t.id+":play playing __forcePause return"):(t.changeStatus({ status:"play", subStatus:e.type }),setTimeout(function(){ t.adVideoStatus="play"; },10),B(t.id+":play playing"),o.removeClass("switch_on"),o.addClass("switch_off"), t._hidePlayControllBar(),t.__startCountTime(),void t._trigger("play")); }),e.off("pause").on("pause",function(){ B(t.id+":video pause event"),t.changeStatus({ status:"pause", subStatus:"" }),setTimeout(function(){ t.adVideoStatus="pause"; },10),o.addClass("switch_on"),o.removeClass("switch_off"),!t.__canplay||t.isEnd()||t.__onTouch?t._hidePlayControllBar():(t.hideControllBar(!0), t._showPlayControllBar()),t.__endCountTime(),t._trigger("pause"); }),e.off("error").on("error",function(){ var e; t.video.error&&(e=t.video.error.code),t.changeStatus({ status:"error", subStatus:e||"" }),t._trigger("error",{ errorcode:e }); }),e.off("webkitbeginfullscreen webkitendfullscreen webkitfullscreenchange mozfullscreenchange fullscreenchange").on("webkitbeginfullscreen webkitendfullscreen webkitfullscreenchange mozfullscreenchange fullscreenchange",function(e){ var i; i="webkitbeginfullscreen"==e.type?!0:"webkitendfullscreen"==e.type?!1:document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen; var o=$(this); i?(o.parents(".js_inner").removeClass("not_fullscreen"),t.__isInFullScreen=!0):(o.parents(".js_inner").addClass("not_fullscreen"), t.hideLoading(),t.__isInFullScreen=!1),B("fullscreenchange state:"+t.__isInFullScreen+"; event type:"+e.type), t._trigger("fullscreenchang",{ state:i }),g.broadcastMessage({ type:"fullscreenchange", data:{ fullScreen:t.__isInFullScreen, id:t.id } }); }); }, _defineEvent:function(){ var e=this; this._event={ progressBarMousemove:function(t){ e.__hasFuncControllBar&&e.__onTouch&&e._pointerMoveHandler({ x:t.pageX||t.clientX, y:t.pageY||t.clientY, e:t }); }, progressBarMouseup:function(t){ return e.__hasFuncControllBar&&e.__onTouch?(e._pointerUpHandler({ x:t.pageX||t.clientX, y:t.pageY||t.clientY, e:t }),!1):void 0; }, progressBarTouchmove:function(t){ if(e.__hasFuncControllBar&&e.__onTouch){ var i=t.changedTouches[0]; e._pointerMoveHandler({ x:i.pageX, y:i.pageY, e:t }); } }, progressBarTouchend:function(t){ if(e.__hasFuncControllBar&&e.__onTouch){ var i=t.changedTouches[0]; return e._pointerUpHandler({ x:i.pageX, y:i.pageY, e:t }),!1; } }, broadcastPlay:function(t){ t.id!==e.id&&e.__hasBeginPlay&&!e.isEnd()&&e.pause4outer(); } }; }, _addPostmessageListener:function(){ g.addListener({ type:"broadcastPlay", func:this._event.broadcastPlay }); }, __bindBtnEvent:function(){ function e(){ if(H)return location.href=i.opt.src,!1; i.changeStatus({ status:"loading", subStatus:"preload" }); var e=2; i._g.hasReportBeginPlay?e=9:window.cgiData&&"0"==window.cgiData.media_source&&(e=11), i.videoCtlReport({ step:e }),i._g.hasReportBeginPlay=!0,i._trigger("readyBeginPlay"); } function t(){ i.isPlay()?(i.videoCtlReport({ step:12 }),i.pause4outer()):i.play4outer(); } { var i=this,o=this.opt,n=(o.extinfo,this.container),a=(this.video,n.find(".js_video_play_controll"), n.find(".js_btn_play")),s=n.find(".js_btn_play_aria"),r=n.find(".js_video_poster"),l=n.find(".js_switch"),d=n.find(".js_progress_bar"),u=n.find(".js_controll"),c=(n.find(".js_played_bar"), n.find(".js_page_video")),p=n.find(".js_full_mask"),g=n.find(".js_video_pause_controll"),f=n.find(".js_full_screen_control"),m=n.find(".js_loading"); n.find(".js_video_flow"); } _.on(g[0],"tap",".js_btn_pause",function(){ i.play4outer(); }); var v,y,w,T,b=0,P=!1,S=0,j=0,C=i.__getDuration(),B=0,k=0,M=1,x=window.user_uin||0,D=0!==x&&Math.floor(x/100)%1e3=10)return void(P=!1); var s=t-v,r=n-y.x,l=a-y.y,d=Math.sqrt(Math.pow(r,2)+Math.pow(l,2))+j,_=Math.min(Math.ceil(d/s),6); S=Math.floor(.1*d+.2*_*_*_)*Math.ceil(C/500),j=0==S?d:0,0>r&&(S=-S); var u=180*Math.atan2(l,r)/Math.PI; P||(u>=-30&&30>=u&&++b,(u>=150&&180>=u||u>=-180&&-150>=u)&&--b,(b>=4||-4>=b)&&(5>=d?b=0:(L=Math.max(L,_), P=!0))),P&&(B+=S,0>B&&(B=0),B>C&&(B=1*C),i.__setForwardBar(B),e.preventDefault(), e.stopPropagation()),y={ x:n, y:a },v=t; } }),c.on("touchend",function(e){ if(P){ if(i.play(B),n.find(".js_forward").css("display","none"),D&&((new Image).src="/mp/jsmonitor?idkey=28307_29_1", !N)){ var t=(new Date,{ x:e.changedTouches[0].clientX, y:e.changedTouches[0].clientY }),o=t.x-T.x,a=t.y-T.y,s=parseInt(Math.sqrt(Math.pow(o,2)+Math.pow(a,2))),r=parseInt(180*Math.atan2(a,o)/Math.PI); r>=-30&&30>=r||r>=150&&180>=r||r>=-180&&-150>=r||((new Image).src="/mp/jsmonitor?idkey=28307_35_1"), (new Image).src="/mp/jsmonitor?idkey=28307_31_1;28307_33_"+s+";28307_34_"+L,N=!0; } i._seekReport(),i._trigger("handDragComplete",{ playTime:B, startDragVideoTime:k }); } S=0,P=!1,b=0; }),c.on("touchmove MSPointerMove pointermove mousemove",function(e){ i.isInFullScreen()&&!F&&(e.preventDefault(),e.stopPropagation()); }),_.tap(c[0],function(e){ e.target===u[0]||u[0].contains(e.target)||i.isEnd()||i.isPause()||P||i._trigger("touchVideo"); }),_.tap(p[0],function(){ i.isEnd()||i._trigger("touchVideo"); }),p.on("touchmove MSPointerMove pointermove mousemove",function(e){ i.isInFullScreen()&&!F&&(e.preventDefault(),e.stopPropagation()); }),_.tap(s[0],function(){ var o=$(this),n=1*o.data("status"); 0==n?(o.addClass("video_playing").data("status","1"),e()):1==n?(o.removeClass("video_playing").data("status","2"), t()):2==n?(o.addClass("video_playing").data("status","1"),t()):3==n&&(o.addClass("video_playing").data("status","1"), i._trigger("ariaReplay")); }),_.on(a[0],"click",function(){ e(); }),_.tap(m[0],function(){ i._trigger("touchVideo"); }),_.tap(l[0],function(){ t(); }),i.__onTouch=!1,d.on("mousedown",function(e){ i.__hasFuncControllBar&&(u.off("mousemove",i._event.progressBarMousemove).on("mousemove",i._event.progressBarMousemove), r.off("mousemove",i._event.progressBarMousemove).on("mousemove",i._event.progressBarMousemove), $(document.body).off("mouseup").on("mouseup",i._event.progressBarMouseup),i._pointerDownHandler({ x:e.pageX||e.clientX, y:e.pageY||e.clientY, e:e })); }),d.on("touchstart",function(e){ if(i.__hasFuncControllBar){ d.off("touchmove",i._event.progressBarTouchmove).on("touchmove",i._event.progressBarTouchmove), d.off("touchend",i._event.progressBarTouchend).on("touchend",i._event.progressBarTouchend); var t=e.changedTouches[0]; i._pointerDownHandler({ e:e, x:t.pageX, y:t.pageY }); } }),_.tap(f[0],function(e){ return i.isInFullScreen()?F&&i.exitFullScreen():F&&((new Image).src=location.protocol+"//mp.weixin.qq.com/mp/jsmonitor?idkey=28307_56_1&r="+Math.random(), i.enterFullScreen()),e.stopPropagation(),e.preventDefault(),!1; }); }, __firstLoadedFlowNoticeJudge:function(){ if(v.device.inWechat&&parent.window.lastNetworkType&&parent.window.lastNetworkType.networkType&&parent.window.lastNetworkType.simType&&b.isMobileNetwork(parent.window.lastNetworkType.networkType)&&1!==parent.window.lastNetworkType.simType){ var e=void 0; e=this.opt.flow<100&&this.opt.flow>0?b.isVideoNeedFlowNotice(this.opt.flow,1):b.isVideoNeedFlowNotice(this.opt.flow,5), e&&(this.opt.flow<100&&this.opt.flow>0?this.__showFlowNotice_1():this.__showFlowNotice_2(this.opt.flow)); } }, __showFlowNotice_1:function(){ this.videoCtlReport({ step:16, noticeType:1 }),this._trigger("flowNotice",{ flow:parseInt(1024*this.opt.flow), noticeType:1 }),this.__flowNoticeTimer&&(clearTimeout(this.__flowNoticeTimer),this.__flowNoticeTimer=null); var e=this.container.find(".js_video_flow").removeClass("flow_fade_out"); this.container.find(".js_flow_notice_1").show(),this.container.find(".js_flow_notice_2").hide(), e.show(),e.addClass("flow_fade_out"); }, __showFlowNotice_2:function(e){ this.videoCtlReport({ step:16, noticeType:2 }),this._trigger("flowNotice",{ flow:parseInt(1024*this.opt.flow), noticeType:2 }),this.__flowNoticeTimer&&(clearTimeout(this.__flowNoticeTimer),this.__flowNoticeTimer=null), this.container.find(".js_flow_notice_2").show(),this.container.find(".js_flow_notice_1").hide(), this.container.find(".js_video_flow_num").html(e+"M"),this.container.find(".js_video_flow").removeClass("flow_fade_out").show(), this.container.find(".js_video_flow").addClass("flow_fade_out"); }, __hideFlowNotice:function(){ this.__flowNoticeTimer&&(clearTimeout(this.__flowNoticeTimer),this.__flowNoticeTimer=null), this.container.find(".js_video_flow").hide(); }, _pointerDownHandler:function(e){ this.__onTouch=!0,this.showControllBar(),this.progressBarSeekData={ x1:e.x, y1:e.y, startTime:this.video.currentTime },this.pause(),e.e.preventDefault(); }, _pointerMoveHandler:function(e){ var t=this.container.find(".js_played_bar"),i=this.container.find(".js_progress_bar"); this.__onTouch=!0,this.__has_drag=!0,this.progressBarSeekData.x2=e.x,this.progressBarSeekData.y2=e.y; var o=t.offset(),n=i.width(),a=(e.x-o.left)/n,s=this.__getDuration(),r=1*(s*a).toFixed(4); r>s&&(r=s-1); var l=!1; "undefined"==typeof this.progressBarSeekData.dragTime&&(l=!0); var d=Math.abs(1*r-1*this.progressBarSeekData.dragTime); (l||d>=.5)&&(this.progressBarSeekData.dragTime=r,B("_pointerMoveHandler set currentTime, dragTime:"+this.progressBarSeekData.dragTime+" currentTime:"+this.video.currentTime), this.video.currentTime=this.progressBarSeekData.dragTime,this.__setPlayTime(this.progressBarSeekData.dragTime)), this.__setControllBar(a),e.e&&(e.e.preventDefault(),e.e.stopPropagation()); }, _pointerUpHandler:function(e){ var t=this; e.e.preventDefault(),e.e.stopPropagation(),this.container.find(".js_controll").off("mousemove",t._event.progressBarMousemove), this.container.find(".js_video_poster").off("mousemove",t._event.progressBarMousemove), $(document.body).off("mouseup",t._event.progressBarMouseup),this.container.find(".js_progress_bar").off("touchmove",t._event.progressBarTouchmove).off("touchend",t._event.progressBarTouchend), "undefined"==typeof this.progressBarSeekData.dragTime&&this._pointerMoveHandler({ x:e.x, y:e.y }); var i=this.progressBarSeekData.dragTime,o=this.progressBarSeekData.startTime; i==this.video.currentTime&&(i-=.1),this.progressBarSeekData.startTime&&t.__dragTimes.push(Math.round(1e3*this.progressBarSeekData.startTime)+":#:"+Math.round(1e3*i)), this.progressBarSeekData=null,B("_pointerUpHandler dragTime:"+i+" currentTime:"+this.video.currentTime), setTimeout(function(){ t.__onTouch=!1,t.__forcePause=!1,t.isEnd()||(t.showLoading(),t.play(i),t._seekReport(), t._trigger("barDragComplete",{ playTime:i, startDragVideoTime:o })); },0),this.__hideControllTimeout(); }, _seekReport:function(){ this.videoCtlReport({ step:13 }); }, _hidePlayControllBar:function(){ this.container.find(".js_video_pause_controll").hide(),this._g.isUserPause&&v.device.inWechat&&("wifi"===this._g.pauseNetType&&b.isVideoNeedFlowNotice(this.opt.flow,3)||b.isNoneNetwork(this._g.pauseNetType)&&b.isVideoNeedFlowNotice(this.opt.flow,4)?this.__showFlowNotice_1():(this._g.isUserPause=!1, this._g.pauseNetType=null)); }, _showPlayControllBar:function(){ var e=this.container.find(".js_video_pause_controll"); this.isEnd()||(this.hideControllBar(),e.show(),this.container.find(".js_video_play_controll").hide()); }, _addSerialTimeupdate:function(){ var e=this.video.currentTime,t=this._g.serialTimeupdateCache.length; e>0&&(0==t||this._g.serialTimeupdateCache[t-1].currentTime!=e)&&(this._g.serialTimeupdateCache.length>=this._g.timeupdateCacheCount&&this._g.serialTimeupdateCache.shift(), this._g.serialTimeupdateCache.push({ currentTime:e, timeStamp:+new Date })); }, _checkPlayBySerialTimeupdate:function(){ if(this._g.serialTimeupdateCache.lengthe&&(e=0),e>100&&(e=100); this.video,this.duration; this.__setBufferBar(e),e+="%"; var t=this.container; t.find(".js_played_bar").css({ width:e }),t.find(".js_played_speed_cnt").css({ left:e }); }, __setForwardBar:function(e){ var t=this.container,i=(this.video,this.__getDuration()),o=e/i; t.find(".js_forward").css("display","block"),t.find(".total_time").text(N(i)),t.find(".js_forward_bar").css("width",100*o+"%"), t.find(".js_forward_play_time").text(N(e)); }, __setBufferBar:function(e){ var t=this.container,i=this.video,o=this.__getDuration(),n=i.currentTime; e=e||n/o; var a=e; i.buffered&&i.buffered.length>0&&i.buffered.end&&o&&(a=i.buffered.end(0)/o,a=Math.max(e,Math.ceil(parseInt(100*a))), a>98&&(a=100)),t.find(".js_buffer_bar").css({ width:a+"%" }); }, __resetVideo:function(){ this.$video.remove(); var e=this.container,t=e.find(".js_video_poster"); t.append(""); { var i=this.$video=t.find("video"); this.video=i[0]; } this.__canplay=!1,this.__forcePause=!1,this.__initVideo(),this.__iosPreloadPause=!1, this.__iosPreloadPlayFlag=!1,this.__bindVideoEvent(); }, _trigger:function(e,t){ var i=this,o=this; if("timeupdate"!==e||"timeupdate"===e&&this._g.triggerTimeupdateLog){ "timeupdate"===e&&(this._g.triggerTimeupdateLog=!1,setTimeout(function(){ i._g.triggerTimeupdateLog=!0; },5e3)); try{ var n="",a=Object.prototype.toString.call(t); n="[object String]"===a?t:"[object Object]"===a||"[object Array]"===a?JSON.stringify(t):"no params", this._jsapiLog("trigger:"+e+";arg:"+n+";"); }catch(r){} } if("readyBeginPlay"==e&&(o.__iosPreloadPlayFlag=!1),"play"==e&&0==o.__iosPreloadPlayFlag){ if(console.log("trigger real play"),o.__iosIsRealPreload&&s(o.video,!1),o.__forcePause=!1, o.opt.notPauseOtherVideoWhenPlay||g.broadcastMessage({ type:"broadcastPlay", data:{ id:this.id } }),window.parent.originalVideoAdFrames&&0!=window.parent.originalVideoAdFrames.length)for(var l=0;ll&&(u|=d[l].recv(e,t),!(2&u));++l); if(!(this._blockInnerHandler||4&u)){ var c=this["__"+e+"Handler"]; c&&c.call(this,t); } 8&u||this.__triggerOutside(e,t); }, _setBlockInnerHandler:function(e){ this._blockInnerHandler=e; }, _setBlockPlugin:function(e,t){ this._blockPlugin[e]=t; }, _getContainer:function(){ return this.container; }, _setCover:function(e,t){ this.container.find(".js_poster_cover").css(t),this.opt.cover=e; }, _removeCover:function(e){ var e=e||{ "background-image":"none" }; this.container.find(".js_poster_cover").css(e); }, _afterReplay:function(){ this.__hasBeginPlay=!0,this.__userplaytime=!0,this.__firstPlayStart=+new Date,this.showLoading(), this.play(),this._trigger("afterReplay"); }, setSrc:function(e,t,i){ var o=this,n=this.$video,a=(this.opt,this.video); this.src=e,(!o.__iosPreloadPause||i)&&o.__initData(),o.__initVideo(),this.showCover(), o.log.loadwait_start=+new Date,(!n.attr("src")||i)&&(n.attr("src",e),v.proxyPreloadExper()&&v.proxyPreloadExper().isUsePreload&&h.os.ios&&!o.opt.ad_muted_btn&&!function(){ var e=function t(){ o.__iosPreloadPause=!0,a.pause(),o._trigger("ready",o.opt),a.removeEventListener("canplay",t,!1); }; a.addEventListener("canplay",e,!1),4!==a.readyState&&(o.__iosPreloadPlayFlag=!0, o.__iosIsRealPreload=!0,s(a,!0),a.play()); }()),a.preload=t||"metadata",n.on("loadedmetadata",function(){ if(o.__videoDurationchange(),o.__playQueue&&o.__playQueue.length>0){ var e=o.__playQueue[0].sec; o.__playQueue=[],o.play(e); } }),a.duration>0&&1!=a.duration&&o.__videoDurationchange(); }, videoCtlReport:function(){ var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=this.opt.extinfo; if(t){ var i={ step:e.step, vid:t.vid, hit_bizuin:t.hit_bizuin, hit_vid:t.hit_vid, traceid:t.pageplayer._getTraceId(), orderid:t.pageplayer._getOrderid(), ori_status:t.pageplayer._getOriStatus(), type:this.opt.videoReportType, fromid:t.pageplayer._getFromid() }; e.step>=16?(i.remind_traffic_size=parseInt(1024*this.opt.flow),i.traffic_reminder_type=e.noticeType, c.commReport(i)):c.report(i); } }, replay:function(){ h.os.android,this._trigger("replay"); }, resetVideo:function(){ this.container.find(".js_video_poster").hide(),this.showCover(),this.__resetVideo(), this._trigger("loading"),this.__hasBeginPlay=!0; }, setSrcWithTime:function(e){ var t=this.video.currentTime; this.resetVideo(),this.setSrc(e,!1,!0),console.log("lastPlayTime",t,e),this.__continueSec=t; }, changeStatus:function(e){ var t=this._g; if(t.statusDefine[e.status]&&(!e.subStatus||t.subStatusDefine[e.subStatus]||"error"===e.status)&&(t.status!==e.status||t.subStatus!==e.subStatus)){ var i=0; "end"===e.status||"error"===e.status?(this._playingBufferingStartTime=null,this.__userplaytime=!1):"pause"===e.status?this._playingBufferingStartTime=null:"play"===e.status&&"playing"===e.subStatus&&null!==this._playingBufferingStartTime?(i=+new Date-this._playingBufferingStartTime, this._playingBufferingStartTime=null):!this.__hasBeginPlay||!this.__canplay||this.__userplaytime||"loading"!==e.status||"waiting"!==e.subStatus&&"seeking"!==e.subStatus||null!==this._playingBufferingStartTime||(this._playingBufferingStartTime=+new Date); var o=t.status,n=t.subStatus; t.status=e.status,t.subStatus=e.subStatus; var a="player statusChange, preStatus:"+o+"; status:"+t.status+"; preSubStatus:"+n+"; subStatus:"+t.subStatus; this._jsapiLog(a),B(a),g.broadcastMessage({ type:"statusChange", data:{ id:this.id, preStatus:o, preSubStatus:n, status:t.status, subStatus:t.subStatus } }),this._trigger("statusChange",{ currentTime:this.video.currentTime, preStatus:o, preSubStatus:n, status:t.status, subStatus:t.subStatus }),i&&this._trigger("playingBufferingTime",{ bufferingTime:i }); } }, play:function(e){ var t=this.video,i=this; if(!i.isEnd()){ if(!t||0==t.readyState)return void(this.__playQueue[0]={ sec:e }); e*=1; try{ if(isNaN(e)||"number"!=typeof e)i.__canplay&&i.isPause()||0==t.currentTime?t.play():t.currentTime=0;else{ var o=this.__getDuration(); e>=o&&(e=o-1),0>e&&(e=0),e=1*(1*e).toFixed(4),i.__last_playtime=e,i.__setPlayTime(e), t.currentTime==e?t.play():t.currentTime=e; } }catch(n){ 0==t.currentTime?t.play():t.currentTime=0; } } }, pause:function(){ var e=this.video; e&&0==e.readyState||(this.__replaySec=null,this.waitingHandlerTimer&&(clearTimeout(this.waitingHandlerTimer), this.waitingHandlerTimer=null),e.pause(),B(this.id+":pause function")); }, enterFullScreen:function(){ var e=this.video; e.requestFullscreen?(e.requestFullscreen(),this.__isInFullScreen=!0):e.mozRequestFullScreen?(e.mozRequestFullScreen(), this.__isInFullScreen=!0):e.webkitRequestFullscreen?(e.webkitRequestFullscreen(), this.__isInFullScreen=!0):e.webkitEnterFullscreen&&(e.webkitEnterFullscreen(),this.__isInFullScreen=!0); }, exitFullScreen:function(){ this.video; this.hideLoading(),document.webkitExitFullscreen&&document.webkitExitFullscreen(), this.__isInFullScreen=!1; }, isInFullScreen:function(){ return!!this.__isInFullScreen; }, play4outer:function(e){ this.__forcePause=!1,this.play(e),this._trigger("userplay"),this._hidePlayControllBar(); }, pause4outer:function(){ this.__forcePause=!0,this.hideLoading(),this.pause(),this._trigger("userpause"), this.hideControllBar(!0),this._showPlayControllBar(); }, setWidth:function(e){ this.container.find(".js_page_video").css({ width:e }); }, setHeight:function(e){ this.container.find(".js_page_video").css({ height:e }); }, showCover:function(){ this.container.find(".js_poster_cover").show(); }, hideCover:function(){ this.container.find(".js_poster_cover").hide(); }, showFuncControllBar:function(){ var e=this.container.find(".js_progress_bar,.js_full_screen_control"); e.show(),this.__hasFuncControllBar=!0; }, hideFuncControllBar:function(){ var e=this.container.find(".js_progress_bar,.js_full_screen_control"); e.hide(),this.__hasFuncControllBar=!1; }, showControllBar:function(){ this.__touchVideoTimeoutHandler&&clearTimeout(this.__touchVideoTimeoutHandler),this.__timerHideControll&&(clearTimeout(this.__timerHideControll), this.__timerHideControll=null),this.container.find(".js_controll").removeClass("opr_fade_out").show(); }, hideControllBar:function(e){ var t=this.container.find(".js_controll"); t.removeClass("opr_fade_in"); var i=this; i.__timerHideControll&&clearTimeout(i.__timerHideControll); var e=!1; e?t.hide():(t.addClass("opr_fade_out"),i.__timerHideControll=setTimeout(function(){ t.hide(); },500)); }, showLoading:function(e){ var t=this; this.__always_hide_loading||this.__isshowLoading&&this.video&&this.video.currentTime>1||(this.__isshowLoading=!0, this._g.resetShowingLoadingTimeoutId&&(clearTimeout(this._g.resetShowingLoadingTimeoutId), this._g.resetShowingLoadingTimeoutId=null),this._g.resetShowingLoadingTimeoutId=window.setTimeout(function(){ t.__isshowLoading=!1; },1e3),this._g.showingLoadingTimeoutId&&(clearTimeout(this._g.showingLoadingTimeoutId), this._g.showingLoadingTimeoutId=null),"firstTime"==e?this.container.find(".js_loading").addClass("start_loading").show():this._g.showingLoadingTimeoutId=setTimeout(function(){ t.container.find(".js_loading").show(); },800)); }, hideLoading:function(){ this.container.find(".js_loading").removeClass("start_loading").hide(),this._g.showingLoadingTimeoutId&&(clearTimeout(this._g.showingLoadingTimeoutId), this._g.showingLoadingTimeoutId=null); }, triggerMuted:function(e){ e?(s(this.video,!0),this.container.find(".js_muted_btn").addClass("muting")):(s(this.video,!1), this.container.find(".js_muted_btn").removeClass("muting")); }, setVideoCSS:function(e){ var t=this,i=t.container,o=i.find(".js_page_video"); o.css(e); }, hasFullScreen:function(){ return this.isInFullScreen(); }, hasDrag:function(){ return!!this.__has_drag; }, getCurTime:function(){ return this.video.currentTime; }, getEndDom:function(){ return this.container.find(".js_end_dom"); }, getDrag:function(){ return this.__dragTimes; }, getPlayTotalTime:function(){ return this.__endCountTime(),this.__play_total_time; }, getLog:function(){ var e=this.log||{}; return{ hasended:e.hasended, last_ms:Math.floor(1e3*(e.lastsec||0)), duration_ms:Math.floor(1e3*(e.duration||0)), video_error:e.video_error||0, video_error_code:e.video_error_code||0, loadwait:e.loadwait||0 }; }, isPlay:function(){ return!this.video.paused&&!this.isEnd(); }, isPause:function(){ return!!this.video.paused; }, isEnd:function(){ return!!this.video.ended; }, hasBeginPlay:function(){ return this.__hasBeginPlay; }, destroy:function(){ g.removeListener({ type:"broadcastPlay", func:this._event.broadcastPlay }); try{ delete parent.window.__MpPlayers[this.id]; }catch(e){} S.visibilityPausePlayer===this&&(S.visibilityPausePlayer=null); } }),L._getFormatTime=N,L; });define("a/tpl/mpda_bottom_tpl.html.js",[],function(){ return'
\n
\n 广告\n
\n \n
\n \n
\n
\n \n <#=adTpl#>\n
'; });define("a/tpl/crt_size_map.js",["a/a_config.js","biz_wap/utils/ajax.js","a/a_sign.js","biz_common/utils/url/parse.js","a/tpl/new_cpc_tpl.html.js","a/tpl/sponsor_tpl.html.js","a/tpl/banner_tpl.html.js","a/tpl/cardticket_tpl.html.js","a/tpl/info_tpl.html.js","a/tpl/smallcard_tpl.html.js","a/tpl/promote_tpl.html.js","a/tpl/banner_info_tpl.html.js","a/tpl/smallbanner_info_tpl.html.js","a/tpl/smallbanner_msg_tpl.html.js"],function(t){ "use strict"; function a(t){ t.biz_info.is_subscribed?(t.btn_text="查看",window.__addIdKeyReport&&window.__addIdKeyReport(24729,65,1)):window.__addIdKeyReport&&window.__addIdKeyReport(24729,64,1); } var _=t("a/a_config.js"),e=t("biz_wap/utils/ajax.js"),n=t("a/a_sign.js"),p=t("biz_common/utils/url/parse.js"); return{ 484:{ tpl:t("a/tpl/new_cpc_tpl.html.js"), renderData:{ isVideo:!1, superscript:!0 } }, 996:{ tpl:t("a/tpl/sponsor_tpl.html.js"), renderData:{ has_banner:!1, has_desc:!0 } }, 997:{ tpl:t("a/tpl/sponsor_tpl.html.js"), renderData:{ has_banner:!1, has_desc:!0 } }, 998:{ multiLogic:[{ selection:{ pos_type:_.AD_POS.POS_SPONSOR }, tpl:t("a/tpl/sponsor_tpl.html.js"), renderData:{ has_banner:!0, has_desc:!0 } },{ selection:{ pos_type:_.AD_POS.POS_BOTTOM }, tpl:t("a/tpl/banner_tpl.html.js") }] }, 135:{ multiLogic:[{ selection:{ pos_type:_.AD_POS.POS_BOTTOM, product_type:_.AD_TYPE.CARD_PRODUCT_TYPE }, tpl:t("a/tpl/cardticket_tpl.html.js"), paramsPreHandler:function(t){ return t.title=t.card_info.card_title,t.avatar=t.card_info.card_logo_url,t.desc=t.card_info.card_brand_name, t; } },{ selection:{ pos_type:_.AD_POS.POS_BOTTOM, product_type:_.AD_TYPE.ADD_CONTACT_PRODUCT_TYPE }, tpl:t("a/tpl/info_tpl.html.js"), paramsPreHandler:function(t){ return t.title=t.avatarTitle,t.desc=t.hint_txt,a(t),t; }, renderData:{ isWxapp:!1 } }] }, 267:{ tpl:t("a/tpl/smallcard_tpl.html.js"), paramsPreHandler:function(t){ return t.title=t.mp_shop_info.name,t.avatar=t.mp_shop_info.img,t.priceBefore=parseInt(t.mp_shop_info.ori_price/100), t.price=parseInt(t.mp_shop_info.cur_price/100),t; } }, 133:{ tpl:t("a/tpl/banner_tpl.html.js") }, 420:{ tpl:t("a/tpl/banner_tpl.html.js") }, 134:{ tpl:t("a/tpl/promote_tpl.html.js"), paramsAlias:{ title:"hint_txt", desc:"ad_desc", avatar:"image_url" } }, 538:{ tpl:t("a/tpl/new_cpc_tpl.html.js"), renderData:{ isVideo:!0, tag_pos:-1, price:!1, superscript:!1 }, paramsAlias:{ title:"avatarTitle" } }, 567:{ tpl:t("a/tpl/banner_tpl.html.js") }, 354:{ tpl:t("a/tpl/banner_info_tpl.html.js"), paramsAlias:{ banner:"image_url" }, paramsPreHandler:function(t){ return t.hint_txt&&(t.desc=t.hint_txt.split("|")[0],t.suply_desc=t.hint_txt.split("|")[1]||""), t.product_type==_.AD_TYPE.ADD_CONTACT_PRODUCT_TYPE?(t.title=t.avatarTitle,t.size=t.app_info.app_size):(t.product_type==_.AD_TYPE.ANDROID_APP_PRODUCT_TYPE||t.product_type==_.AD_TYPE.IOS_APP_PRODUCT_TYPE)&&(t.title=t.app_info.app_name, t.size=t.app_info.app_size,"进入应用"==t.btn_text&&(t.btn_text="进入")),t; } }, 117:{ tpl:t("a/tpl/smallbanner_info_tpl.html.js"), paramsAlias:{ banner:"image_url" }, paramsPreHandler:function(t){ return t.product_type==_.AD_TYPE.ADD_CONTACT_PRODUCT_TYPE?t.title=t.avatarTitle:(t.product_type==_.AD_TYPE.ANDROID_APP_PRODUCT_TYPE||t.product_type==_.AD_TYPE.IOS_APP_PRODUCT_TYPE)&&(t.title=t.app_info.app_name, "进入应用"==t.btn_text&&(t.btn_text="进入")),a(t),t; } }, 355:{ tpl:t("a/tpl/smallbanner_info_tpl.html.js"), paramsAlias:{ banner:"image_url" }, paramsPreHandler:function(t){ return t.product_type==_.AD_TYPE.ADD_CONTACT_PRODUCT_TYPE?t.title=t.avatarTitle:(t.product_type==_.AD_TYPE.ANDROID_APP_PRODUCT_TYPE||t.product_type==_.AD_TYPE.IOS_APP_PRODUCT_TYPE)&&(t.title=t.app_info.app_name, "进入应用"==t.btn_text&&(t.btn_text="进入")),a(t),t; } }, 568:{ tpl:t("a/tpl/smallbanner_info_tpl.html.js"), paramsAlias:{ banner:"image_url" }, paramsPreHandler:function(t){ return t.product_type==_.AD_TYPE.ADD_CONTACT_PRODUCT_TYPE?t.title=t.avatarTitle:(t.product_type==_.AD_TYPE.ANDROID_APP_PRODUCT_TYPE||t.product_type==_.AD_TYPE.IOS_APP_PRODUCT_TYPE)&&(t.title=t.app_info.app_name, "进入应用"==t.btn_text&&(t.btn_text="进入")),a(t),t; } }, 677:{ tpl:t("a/tpl/smallbanner_msg_tpl.html.js"), paramsPreHandler:function(t){ var a=t.shop_image; return t.shop_image.length>0&&(a=a[0]),t.banner=a.image_url,t.title=t.hint_txt,t.tags=a.mp_tags, t; } }, 708:{ tpl:t("a/tpl/new_cpc_tpl.html.js"), paramsPreHandler:function(t){ return t.isVideo=!1,t.price="",t.tag_pos="",t.superscript="",a(t),t; }, afterRender:function(t,a){ function _(){ i.style.display="none"; } if(a){ var i=a.getElementsByClassName("js_mpad_cpc_ft_msg_contact")[0]; i&&setTimeout(function(){ var a=["aid="+t.aid,"appid="+t.biz_appid,"pass_ticket="+window.pass_ticket,"pos_type="+t.pos_type,"sn="+window.sn,"user_uin="+window.user_uin,"uxinfo="+(t.uxinfo||"")].join("&"); n.createSign({ beforeSign:a, timeout:2e3 },function(n,l,r,s){ e({ url:p.join("/mp/getappmsgad",{ action:"getbizext", ad_sign_data:n, ad_sign_k1:l, ad_sign_k2:r, ad_sign_md5:s, pos_type:t.pos_type, aid:t.aid, pass_ticket:encodeURIComponent(window.pass_ticket) },!0), type:"POST", notEncode:!0, data:{ sn:window.sn, appmsgid:window.appmsgid, idx:window.idx, appid:t.biz_appid, __biz:window.biz, mid:window.mid, send_time:window.send_time||"", uxinfo:t.uxinfo||"", before_sign:a }, success:function(t){ try{ t=JSON.parse(t); }catch(a){ return void _(); } if(!t.biz_info)return void _(); var e=i.getElementsByTagName("span")[0],n=i.getElementsByTagName("span")[1],p=t.biz_info.original_cnt>=10?t.biz_info.original_cnt+"篇原创文章":"",l=t.biz_info.comm_sub_cnt>0?t.biz_info.comm_sub_cnt+"位朋友关注":""; p?(e.innerHTML=p,n.innerHTML=l):l?e.innerHTML=l:t.biz_info.signature?e.innerHTML=t.biz_info.signature:_(); }, error:function(){ _(); } }); }); },1e3); } } } }; });define("biz_wap/jsapi/cardticket.js",["biz_wap/jsapi/core.js"],function(e){ "use strict"; var c=e("biz_wap/jsapi/core.js"),r={ openCardDetail:function(e){ function r(){ c.invoke("openCardDetail",{ card_id:e.card_id, card_ext:e.card_ext },function(c){ "open_card_detail:fail"==c.err_msg||"open_card_detail:ok"==c.err_msg||"open_card_detail:cancel"==c.err_msg?e.success&&e.success(c):c.err_msg.indexOf("function_not_exist")>=0?e.function_not_exist&&e.function_not_exist():"system:access_denied"==c.err_msg?e.access_denied&&e.access_denied("openCardDetail"):e.error&&e.error(c); }); } function n(){ c.invoke("batchAddCard",{ card_list:[{ card_id:e.card_id, card_ext:e.card_ext }] },function(c){ "batch_add_card:ok"==c.err_msg||"batch_add_card:fail"==c.err_msg||"batch_add_card:cancel"==c.err_msg?e.success&&e.success(c):c.err_msg.indexOf("function_not_exist")>=0?r():"system:access_denied"==c.err_msg?e.access_denied&&e.access_denied("batchAddCard"):e.error&&e.error(c); }); } n(); }, supportCardDetail:function(e){ c.invoke("openCardDetail",{ card_id:"err_id" },function(c){ e.callback(c.err_msg.indexOf("function_not_exist")>=0?!1:!0); }); }, openCard:function(e){ c.invoke("batchViewCard",{ cardList:[{ cardId:e.cardId, code:e.code }] },function(c){ c.err_msg.indexOf("function_not_exist")>=0?e.function_not_exist&&e.function_not_exist():e.success&&e.success(c); }); } }; return r; });define("biz_common/utils/emoji_panel_data.js",[],function(){ "use strict"; return[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,54,55,56,57,60,62,63,64,65,66,67,68,70,74,75,76,78,79,80,81,82,83,84,85,89,92,93,94,95,300,301,302,303,304,305,306,307,204,205,202,206,212,211,308,309,310,311,312,209,214]; });define("appmsg/emotion/textarea.js",["appmsg/emotion/dom.js","appmsg/emotion/caret.js","biz_common/dom/class.js","biz_common/utils/emoji_data.js","biz_common/utils/emoji_panel_data.js"],function(e,t){ "use strict"; function n(){ var e="translate3d(0, 0, 0)"; u.css({ webkitTransform:e, transform:e }); } function a(){ var e=8; u.on("keydown",function(t){ t.keyCode===e&&i(!0)&&t.preventDefault(); }); } function i(e){ function t(){ var e=a-1; 0>e&&(e=0); var t=i.slice(0,e),o=i.slice(a),s=+new Date; n.value=t+o,f.set(n,e),r(+new Date-s); } var n=u.el[0],a=f.get(n),i=n.value,s=4,c=a-s; 0>c&&(c=0,s=a-c); var v=i.slice(c,a),d=v.match(/\[([\u4e00-\u9fa5\w]+)\]$/g); if(d){ var p=d[0],_=s-p.length,j=p.replace("[","").replace("]",""); if(o(j)){ var b=v.replace(p,""),g=i.slice(0,c)+b+i.slice(a),h=+new Date; n.value=g,f.set(n,c+_),r(+new Date-h); }else{ if(e)return!1; t(); } }else{ if(e)return!1; t(); } return e?(n.focus(),m.later(function(){ n.focus(); })):(n.blur(),m.later(function(){ n.blur(); })),l(n.value),!0; } function o(e){ for(var t=0,n=j.length;n>t;t++)if(j[t]==e)return!0; return!1; } function s(e){ var t=u.el[0],n=f.get(t),a=t.value,a=a.slice(0,n)+e+a.slice(n); t.value=a,f.set(t,n+e.length+1),t.blur(),m.later(function(){ t.blur(); }),l(a); } function r(){} function l(e){ var t=c.el[0]; e.length<1?v.addClass(t,"btn_disabled"):v.removeClass(t,"btn_disabled"); } for(var u,c,t={},m=e("appmsg/emotion/dom.js"),f=e("appmsg/emotion/caret.js"),v=e("biz_common/dom/class.js"),d=e("biz_common/utils/emoji_data.js"),p=e("biz_common/utils/emoji_panel_data.js"),_={},j=[],b=0;b